package com.howlaisi.devops.message;

def printBuildInfo() {
    wrap([$class: 'BuildUser']) {
        currentBuild.description = "提交者: ${env.COMMIT_USER}" // 添加说明信息
        currentBuild.description += "\nCOMMIT_ID: ${env.COMMIT_ID}" // 提交ID
        currentBuild.description += "\n提交时间: ${env.COMMIT_TIME}" // 提交时间
        currentBuild.description += "\n提交内容: ${env.COMMIT_INFO}" // 提交信息
        currentBuild.description += "\n此次构建地址: ${env.JENKINS_BUILD_URL}" // jenkins此次构建地址

    }
}
